﻿namespace ExcelExport {
    class Program
    {
        static int Main(string[] args)
        {
            AnalyseExcel analyse = new AnalyseExcel(Util.dirExcel);

            //无参默认只导json
            for (int i = 0; i < args.Length; i++)
            {
                string arg = args[i].ToLower();

                if (arg.Equals("all"))
                {
                    Util.exportJson = Util.exportLua = Util.exportCS = true;
                    break;
                }else if (arg.Equals("lua"))
                {
                    Util.exportLua = true;
                }else if (arg.Equals("cs"))
                {
                    Util.exportCS = true;
                }
            }
            analyse.AnalysisTable();
            return 0;
        }
    }
}
